<?php
namespace App\Api;
use PhalApi\Api;

/**
 * mir分类
 * @author: dogstar <chanzonghuang@gmail.com> 2014-10-04
 */
class MirList extends Api {
    public function getRules() {
        return array(
            'index' => array(),
        );
    }

    /**
     * 首页分类展示
     * @desc 默认接口服务，当未指定接口服务时执行此接口服务
     * @return string title 标题
     * @return string content 内容
     * @return string version 版本，格式：X.X.X
     * @return int time 当前时间戳
     * @exception 400 非法请求，参数传递错误
     */
    public function index() {
        $info = array(
            array(
                'id' => 0,
                'name' => '万国觉醒',
                'info' => array(
                    array('id' => 0, 'listTitle' => '头衔申请',),
                    array('id' => 1, 'title' => '头衔申请','txt'=>'申请王国头衔 公爵,建筑,研究','url'=>"http://mir4.honghongdesign.cn/img/king.png","nav" => "../rok/index/index"),
                    array('id' => 2, 'listTitle' => '王国管理' ),
                    array('id' => 3, 'title' => '管理王国','txt'=>'王国设置,记录','url'=>"https://game.wenfree.cn/img/king.png","nav"=>"../rok/index"),
                    array('id' => 4, 'listTitle' => '专业托管' ),
                    array('id' => 5, 'title' => '帐号查看','txt'=>'查看帐号情况','url'=>"https://game.wenfree.cn/img/robet.png","nav"=>"../rok/account/index"),
                )
            ),
            array(
                'id' => 1,
                'name' => '传奇4',
                'info' => array(
                    array('id' => 0, 'listTitle' => '奇缘任务' ),
                    array('id' => 1, 'title' => '半兽人角笛','txt'=>'半兽人角笛',"nav"=>"../showPage/index", ),
                    array('id' => 2, 'title' => '白花金针','txt'=>'白花金针',"nav"=>"../showPage/index", ),
                    array('id' => 3, 'title' => '大义名分','txt'=>'大义名分',"nav"=>"../showPage/index", ),
                    array('id' => 4, 'title' => '消失的魔教秘籍','txt'=>'消失的魔教秘籍',"nav"=>"../showPage/index", ),
                    array('id' => 5, 'title' => '绝世高手','txt'=>'绝世高手',"nav"=>"../showPage/index", ),
                    array('id' => 6, 'listTitle' => '委托任务',),
                    array('id' => 7, 'title' => '银杏谷','txt'=>'银杏谷的委托', "nav"=>"../showPage/index", ),
                    array('id' => 8, 'title' => '比奇城龙会楼','txt'=>'比奇城龙会楼的委托', "nav"=>"../showPage/index", ),
                    array('id' => 9, 'title' => '比奇城','txt'=>'比奇城的委托', "nav"=>"../showPage/index", ),
                    array('id' => 10, 'title' => '比奇县','txt'=>'比奇县的委托', "nav"=>"../showPage/index", ),
                    array('id' => 11, 'title' => '仙界精灵村','txt'=>'仙界精灵村的委托', "nav"=>"../showPage/index", ),
                    array('id' => 12, 'title' => '沃玛森林','txt'=>'沃玛森林的委托', "nav"=>"../showPage/index", ),
                    array('id' => 13, 'title' => '隐士谷','txt'=>'隐士谷的委托', "nav"=>"../showPage/index", ),
                    array('id' => 14, 'title' => '蛇谷','txt'=>'蛇谷的委托', "nav"=>"../showPage/index", ),
                    array('id' => 15, 'title' => '蛇妖平原','txt'=>'蛇妖平原的委托', "nav"=>"../showPage/index", ),
                    array('id' => 16, 'title' => '恶人村','txt'=>'恶人村的委托', "nav"=>"../showPage/index", ),
                    array('id' => 17, 'title' => '西川贸易区','txt'=>'西川贸易区的委托', "nav"=>"../showPage/index", ),
                    array('id' => 18, 'title' => '幻木林','txt'=>'幻木林的委托', "nav"=>"../showPage/index", ),
                    array('id' => 19, 'title' => '道观','txt'=>'道观的委托', "nav"=>"../showPage/index", ),
                    array('id' => 20, 'title' => '天道峰低层','txt'=>'天道峰低层的委托', "nav"=>"../showPage/index", ),
                    array('id' => 21, 'title' => '天道峰中层','txt'=>'天道峰中层的委托', "nav"=>"../showPage/index", ),
                    array('id' => 22, 'title' => '赤月山','txt'=>'赤月山的委托', "nav"=>"../showPage/index", ),
                )
            ),
            array(
                'id' => 2,
                'name' => '梦幻互通',
                'info' => array(
                    array('id' => 0, 'listTitle' => '梦幻数据',),
                    array('id' => 1, 'title' => '梦幻数据','txt'=>'梦幻数据互通数据','url'=>"http://mir4.honghongdesign.cn/img/king.png"),
                )
            ),
            array(
                'id' => 3,
                'name' => '文明征服',
                'info' => array(
                    array('id' => 0, 'listTitle' => '头衔申请',),
                    array('id' => 1, 'title' => '头衔申请','txt'=>'申请王国头衔 公爵,建筑,研究','url'=>"http://mir4.honghongdesign.cn/img/king.png"),
                )
            ),
        );
        return $info;
    }

}
